<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>属性设置</title>
</head>

<body>
    <div>属性设置</div>
    <hr />
    <div id="demoReact"></div>
</body>
<script src="../../node_modules/babel-standalone/babel.min.js"></script>
<script src="../../node_modules/react/umd/react.development.js"></script>
<script src="../../node_modules/react-dom/umd/react-dom.development.js"></script>
<script type="text/babel">
    let text = "百度一下";

    let linkUrl = "https://www.baidu.com"

    let myDom = (
        <a href={linkUrl}>{text}</a>
    );

    let root = ReactDOM.createRoot(document.getElementById("demoReact"));
    root.render(myDom);
</script>

</html>